package com.cuhk.gulimall.product.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix="thread-pool")
public class ThreadPoolConfigProperties {

    // 声明一些线程池的可配置项
    private Integer corePoolSize;
    private Integer maxPoolSize;
    private Integer keepAliveTime;
    private Integer queueCapacity;
}
